using System.ComponentModel.DataAnnotations;


public class UserModel
{
    public int Id { get; set; }

    [StringLength(100)]
    [Display(Name = "全名")]
    public string FullName { get; set; }

    [Display(Name = "账号")]
    public string UserName { get; set; }

    [EmailAddress]
    [Display(Name = "邮箱")]
    public string Email { get; set; }

    [Display(Name = "密码")]
    [StringLength(100, MinimumLength = 6)]
    public string Password { get; set; }

    [StringLength(100)]
    [Display(Name = "手机号码")]
    public string PhoneNumber { get; set; }

}